﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="EFIrstTest.WebForm1" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        教师id<asp:TextBox ID="teachid" runat="server"></asp:TextBox> 教师姓名<asp:TextBox ID="teachname" runat="server"></asp:TextBox><asp:Button ID="search" runat="server" Text="查询" OnClick="search_Click" /><br />
        <hr />
         教师id<asp:TextBox ID="delid" runat="server"></asp:TextBox><asp:Button ID="delbtn" runat="server" Text="删除" OnClick="delbtn_Click" /><br />
         <hr />
        教师id <asp:TextBox ID="tid" runat="server"></asp:TextBox><br />
       教师姓名 <asp:TextBox ID="tname" runat="server"></asp:TextBox><br />
        授课<asp:TextBox ID="major" runat="server"></asp:TextBox><br />
        职称<asp:TextBox ID="prof" runat="server"></asp:TextBox><br />
        院系<asp:TextBox ID="depart" runat="server"></asp:TextBox>
        <asp:Button ID="Button1" runat="server" Text="添加" OnClick="Button1_Click" /><br />
         <hr />
          教师id <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox><br />
       教师姓名 <asp:TextBox ID="TextBox2" runat="server"></asp:TextBox><br />
        授课<asp:TextBox ID="TextBox3" runat="server"></asp:TextBox><br />
        职称<asp:TextBox ID="TextBox4" runat="server"></asp:TextBox><br />
        院系<asp:TextBox ID="TextBox5" runat="server"></asp:TextBox>
        <asp:Button ID="Button2" runat="server" Text="更新" OnClick="Button2_Click"  />
        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False">
            <Columns>
                <asp:BoundField DataField="teacherno" HeaderText="teacherno" />
                <asp:BoundField DataField="tname" HeaderText="tname" />
                <asp:BoundField DataField="major" HeaderText="major" />
                <asp:BoundField DataField="prof" HeaderText="prof" />
                <asp:BoundField DataField="department" HeaderText="department" />
            </Columns>
        </asp:GridView>
    </div>
    </form>
</body>
</html>
